跳到主要内容

配置 configmap cm


kubectl create configmap fortune-config -- from-literal=sleep-interval=25


kubectl create configmap my-config --from-file=config-file.conf


kubectl create configmap my-config -from-file=customkey=config file.conf

kubectl create configmap my -config --from-file=/path/ to/ dir

![54863e503bb460eaa2bce9c4d741b3a5.png](54863e503bb460eaa2bce9c4d741b3a5.png)